<?php
class FoodPlaceCuisineRecord extends TActiveRecord
{
	const TABLE='tbl_food_place_cuisine';

	public $FoodPlaceID;
	public $CuisineID;
	public $SortOrder;
	public $CreateDate=0;	
	public $CreateBy;
	
	public static $COLUMN_MAPPING=array
	(
		'food_place_id'=>'FoodPlaceID',
		'cuisine_id'=>'CuisineID',
		'sort_order'=>'SortOrder',
		'c_date'=>'CreateDate',
		'c_by'=>'CreateBy'
	);

	public static function finder($className=__CLASS__)
	{
		return parent::finder($className);
	}
	
	public function save()
	{
		parent::save();
	}
	
	public function getAllItems()
	{
		$criteria = new TActiveRecordCriteria;
		$criteria->Condition = "food_place_id > 0";
		return self::finder()->findAll($criteria);
	}
}
?>